import http from '@/utils/http'

import type {
  FirstDep,
  ConsultOrderPreData,
  ConsultOrderPreParams
} from '@/types/consult'

export function getDepListApi() {
  return http.get<FirstDep[]>('/dep/all')
}

export const getConsultOrderPreApi = (params: ConsultOrderPreParams) =>
  http.get<ConsultOrderPreData>('/patient/consult/order/pre', params)
